﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Concurrent;
using EBA.Contracts;
using EBA.WindowsServices;

namespace EBA.MQ
{
    /// <summary>
    /// 消息中介。它负责把消息分发到正确的<see cref="MessageBroker">消息中介</see>或者<see cref="IMessageQueue">消息队列</see>。
    /// </summary>
    public class MessageBroker
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public MessageBroker()
        {
        }


        /// <summary>
        /// 标识
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 消息中介路由表。用来描述可达的消息中介网络结构。
        /// </summary>
        public BrokerRouteTable RouteTable
        {
            get
            {
                throw new NotImplementedException();
            }

        }

        /// <summary>
        /// 消息队列。用来表述消息队列信息。
        /// </summary>
        public IEnumerable<IMessageQueue> Queues
        {
            get
            {
                throw new NotImplementedException();
            }
        }


        /// <summary>
        /// 对应的路由
        /// </summary>
        public BrokerRoute Route
        {
            get
            {
                throw new NotImplementedException();
            }
        }

   
    }
}
